查看pyhton 版本,直接cmd运行 pyhon即可。如下:3.8.9
C:UsersAdministratorPycharmProjectspythonProject1venv2022web_app>python Python 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 14:02:34) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
查看python的所有模块,我是用pip 安装的,所以使用pip list 即可。如下:
C:UsersAdministratorPycharmProjectspythonProject1venv2022web_app>pip list Package Version ------------------------- --------- alembic 1.7.5 altgraph 0.17.2 appdirs 1.4.4 bcrypt 3.2.0 blinker 1.4 certifi 2021.10.8 cffi 1.15.0 charset-normalizer 2.0.10 click 8.0.0 colorama 0.4.4 cryptography 36.0.1 distlib 0.3.1 dnspython 2.2.0 email-validator 1.1.3 filelock 3.0.12 ...............
查看指定模块的版本,如查看netmiko的版本,pip show netmiko ,如下:
C:UsersAdministratorPycharmProjectspythonProject1venv2022web_app>pip show netmiko Name: netmiko Version: 3.4.0 Summary: Multi-vendor library to simplify Paramiko SSH connections to network devices Home-page: https://github.com/ktbyers/netmiko Author: Kirk Byers Author-email: ktbyers@twb-tech.com License: MIT Location: c:usersadministratorappdatalocalprogramspythonpython38libsite-packages Requires: ntc-templates, paramiko, pyserial, scp, setuptools, tenacity Required-by: